#ifndef __LINUX_YAPFS_H
#define __LINUX_YAPFS_H

#define YAPFS_MAGIC "YAPFS1.0"
#define YAPFS_BLOCK_SIZE 512
#define YAPFS_NAME_LEN 16

struct yapfs_super_block
{
    char magic[8];
    unsigned int block_size;
    unsigned int block_count;
} __attribute__ ((packed, aligned(1)));

struct yapfs_inode
{
    unsigned int mode;
    unsigned int uid;
    unsigned int gid;
    unsigned int atime;
    unsigned int ctime;
    unsigned int mtime;
    unsigned int dtime;
    
    unsigned int flags;
    unsigned int size;
    unsigned int start_block;
    char name[16];
} __attribute__ ((packed, aligned(1)));

#endif